import axios from '@/api/fetch';
import SERVER from '@/api/server';

export const gethavingList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/addPart/queryPart`, { params });
// 获取仓库数据字典
export const getstorelistList = params => axios.get(`/dms.web/part/rest/basedata/store/storelist`, { params });
// 获取品牌数据字典
export const getbrandsdictList = params => axios.get(`/dms.web/manage/rest/basedata/brandsdict`, { params });
// 获取数据字典
export const getpartInfosList = params => axios.get(`/dms.web/part/rest/basedata/partInfos/querypartGroupCodes`, { params });
// 获取收费区分
export const getcplistList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/chargeDifferentiationList`, { params });
// 获取收费类别
export const getqueryFeeList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/queryFee`, { params });
// 维修材料调用数据
export const getaddPartList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/addPart/queryPartStock`, { params });
// 获取备件数据列表
export const getqueryInsteadPartList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/addPart/queryInsteadPart/${params.PART_NO}`, { params });
